package com.hxj.admin.szjy.web;

import com.hxj.admin.szjy.pojo.po.Usermanager;
import com.hxj.admin.szjy.pojo.query.UserQuery;
import com.hxj.admin.szjy.service.DistService;
import com.hxj.admin.szjy.service.UsermanagerService;
import com.hxj.common.core.pojo.bo.RestResult;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author hxj
 * @Date 2024/10/26 15:36
 * @Description
 */
@RestController
@RequiredArgsConstructor
@RequestMapping("/dist")
public class DistController {

    private final DistService distService;

    @ResponseBody
    @GetMapping("/tree")
    public RestResult tree(String distNo) {
        return RestResult.fail(20000, "请求成功", distService.getDistsByDistNo(distNo));
//        return null;
    }


}
